import $http from "./requst";
// 登陆
export const login = (data) =>
  $http({ url: "/admin/Login", method: "post", data });

// 办证发布列表
export function Accreditation(data) {
  return $http({
    url: `/admin`,
    method: "POST",
    data,
  });
}
// 办证发布
export function AccreditationAdd(data) {
  return $http({
    url: `/admin/Index/add`,
    method: "POST",
    data,
  });
}

// 办证删除
export function AccreditationDelete(data) {
  return $http({
    url: `/admin/Index/delete`,
    method: "POST",
    data,
  });
}

// 办证编辑
export function AccreditationEdit(data) {
  return $http({
    url: `/admin/Index/edit`,
    method: "POST",
    data,
  });
}

// 办证详情回显
export function AccreditationDetail(data) {
  return $http({
    url: `/admin/Index/showEdit`,
    method: "POST",
    data,
  });
}
